﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Data;

namespace GenericWin.Converter
{
    public class ConverterBackgroundWindow : IMultiValueConverter
    {
        #region IMultiValueConverter Membres

        public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return new Rect(System.Convert.ToDouble(values[0])/2 - 600/2,
                            System.Convert.ToDouble(values[1])/2 - 600/3, 600, 600);
        }

        public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
